package com.android.aishangauction.model.group;

import com.android.aishangauction.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/9/21.
 */

public abstract  class BusinessVoucherListDataCallback extends Callback<BusinessVoucherListData> {

    @Override
    public BusinessVoucherListData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("BusinessVoucherListData",string);
        BusinessVoucherListData data = new Gson().fromJson(string, BusinessVoucherListData.class);
        return data;
    }
}
